package com.black.basetest;

import java.util.Scanner;

public class Test1 {
	public static void main(String[] args) {
		int a[]=new int[10];
		int i=0;
		Scanner sc=new Scanner(System.in);
		for(i=0;i<10;i++){
			a[i]=sc.nextInt();
		}
		for(i=9;i>-1;i--){
			System.out.println(a[i]);
		}
		sc.close();
	}
}
